<script>
export default {
  data() {
    return {
      value:null
    }
  },
  methods: {
    change() {
      let time0 = new Date(this.value).getTime();
      this.$emit('change', time0);
    }
  }
}
</script>

<template>
  <div>
    <el-date-picker
        v-model="value"
        type="datetime"
        @change="change"
        placeholder="选择日期时间">
    </el-date-picker>
  </div>
</template>

<style scoped>

</style>